package cn.dansj.service;

import cn.dansj.bean.ArticleTitle;
import cn.dansj.entity.Article;
import org.springframework.data.domain.Page;

import java.util.List;

public interface ArticleService {
    //页面查询
    Page<Article> search(Integer pageNum,
                         Integer pageLimit,
                         String title,
                         String type,
                         int status);

    Page<Article> getList(String category, String tag, int page, int limit);

    List<Article> getList();

    Article save(Article article);

    List<Article> save(List<Article> articles);

    Article detail(String sequence);

    int delete(String sequence);

    List<Object[]> category();

    List<ArticleTitle> search(String keyword);
}
